<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>学生管理系统 - 登录</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#165DFF',
                        secondary: '#36BFFA',
                        neutral: {
                            100: '#F5F7FA',
                            200: '#E4E7ED',
                            300: '#C0C4CC',
                            400: '#909399',
                            500: '#606266',
                            600: '#303133',
                            700: '#1E1E1E',
                        },
                        success: '#52C41A',
                        warning: '#FAAD14',
                        danger: '#FF4D4F',
                    },
                    fontFamily: {
                        inter: ['Inter', 'system-ui', 'sans-serif'],
                    },
                    boxShadow: {
                        'card': '0 10px 30px -5px rgba(0, 0, 0, 0.1)',
                        'card-hover': '0 20px 40px -5px rgba(0, 0, 0, 0.15)',
                    }
                },
            }
        }
    </script>
    <style type="text/tailwindcss">
        @layer utilities {
            .content-auto {
                content-visibility: auto;
            }
            .bg-gradient-blue {
                background: linear-gradient(135deg, #165DFF 0%, #36BFFA 100%);
            }
            .text-gradient-blue {
                background-clip: text;
                -webkit-background-clip: text;
                color: transparent;
                background-image: linear-gradient(135deg, #165DFF 0%, #36BFFA 100%);
            }
            .input-focus {
                @apply focus:ring-2 focus:ring-primary/50 focus:border-primary focus:outline-none;
            }
            .btn-hover {
                @apply hover:shadow-lg hover:-translate-y-0.5 transition-all duration-300;
            }
        }
    </style>
</head>
<body class="font-inter bg-neutral-100 min-h-screen flex items-center justify-center p-4">
    <div class="w-full max-w-md">
        <!-- 登录卡片 -->
        <div class="bg-white rounded-2xl shadow-card hover:shadow-card-hover transition-all duration-500 p-8">
            <!-- 标题区域 -->
            <div class="text-center mb-8">
                <div class="inline-flex items-center justify-center w-16 h-16 rounded-full bg-gradient-blue text-white mb-4">
                    <i class="fa fa-graduation-cap text-2xl"></i>
                </div>
                <h1 class="text-[clamp(1.5rem,3vw,2rem)] font-bold text-neutral-700 mb-2">学生管理系统</h1>
                <p class="text-neutral-400">请登录以继续</p>
            </div>
            
            <!-- 表单区域 -->
            <form id="loginForm" class="space-y-5">
                <!-- 用户名输入框 -->
                <div class="relative">
                    <div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
                        <i class="fa fa-user text-neutral-400"></i>
                    </div>
                    <input type="text" id="username" class="w-full pl-10 pr-4 py-3 rounded-lg border border-neutral-200 text-neutral-600 placeholder-neutral-400 input-focus transition-all duration-300" placeholder="请输入用户名" required>
                </div>
                
                <!-- 密码输入框 -->
                <div class="relative">
                    <div class="absolute inset-y-0 left-0 flex items-center pl-3 pointer-events-none">
                        <i class="fa fa-lock text-neutral-400"></i>
                    </div>
                    <input type="password" id="password" class="w-full pl-10 pr-10 py-3 rounded-lg border border-neutral-200 text-neutral-600 placeholder-neutral-400 input-focus transition-all duration-300" placeholder="请输入密码" required>
                    <button type="button" id="togglePassword" class="absolute inset-y-0 right-0 flex items-center pr-3 text-neutral-400 hover:text-neutral-600 transition-colors duration-300">
                        <i class="fa fa-eye-slash"></i>
                    </button>
                </div>
                
                <!-- 记住我和忘记密码 -->
                <div class="flex items-center justify-between">
                    <div class="flex items-center">
                        <input id="remember" type="checkbox" class="w-4 h-4 rounded border-neutral-300 text-primary focus:ring-primary">
                        <label for="remember" class="ml-2 text-sm text-neutral-500">记住我</label>
                    </div>
                    <a href="#" class="text-sm text-primary hover:text-primary/80 transition-colors duration-300">忘记密码?</a>
                </div>
                
                <!-- 登录按钮 -->
                <button type="submit" class="w-full bg-primary hover:bg-primary/90 text-white font-medium py-3 px-4 rounded-lg btn-hover transition-all duration-300 flex items-center justify-center">
                    <span>登录</span>
                    <i class="fa fa-arrow-right ml-2"></i>
                </button>
            </form>
            
            <!-- 底部链接 -->
            <div class="mt-8 text-center">
                <p class="text-neutral-500 text-sm">
                    没有账号? <a href="#" class="text-primary hover:text-primary/80 font-medium transition-colors duration-300">立即注册</a>
                </p>
            </div>
        </div>
        
        <!-- 页脚 -->
        <div class="mt-6 text-center text-neutral-400 text-sm">
            <p>© 2025 学生管理系统 | 版权所有</p>
        </div>
    </div>

    <script>
        // 密码显示/隐藏切换
        const togglePassword = document.getElementById('togglePassword');
        const passwordInput = document.getElementById('password');
        
        togglePassword.addEventListener('click', function() {
            const type = passwordInput.getAttribute('type') === 'password' ? 'text' : 'password';
            passwordInput.setAttribute('type', type);
            
            // 切换图标
            this.querySelector('i').classList.toggle('fa-eye');
            this.querySelector('i').classList.toggle('fa-eye-slash');
        });
        
        // 表单提交处理
        const loginForm = document.getElementById('loginForm');
        loginForm.addEventListener('submit', function(e) {
            e.preventDefault();
            
            const username = document.getElementById('username').value;
            const password = document.getElementById('password').value;
            
            // 简单验证
            if (username && password) {
                // 这里可以添加实际的登录逻辑，如AJAX请求
                alert('登录成功！即将跳转到系统主页。');
                // 模拟登录成功后的跳转
                window.location.href = '#';
            } else {
                alert('请输入用户名和密码');
            }
        });
        
        // 添加页面载入动画
        document.addEventListener('DOMContentLoaded', function() {
            document.body.classList.add('opacity-100');
            document.body.classList.remove('opacity-0');
        });
    </script>
</body>
</html>
    